<template>
    <el-card>商品详情页

        <el-button @click="tan">button</el-button>
        <el-button @click="tan2">button</el-button>
        <el-button @click="tan3">button</el-button>
    </el-card>
</template>


<script setup>
import { onMounted } from 'vue';
import { useRoute } from 'vue-router';
import { toast,showModel ,alertData} from '@/utils/toast.js';
const tan = () => {
    toast('提示信息', 'error')
}
const tan2 = () => {
    showModel('提示信息2', 'title')
}
const tan3 = () => {
    alertData('提示信息3', 'title2')
}
</script>